package comgame.entities.EquipmentEnum;

import java.util.ArrayList;

public enum LeggingType implements EquipmentType {
    LEGGING_1("普通护腿", 1,3,1,0.00),
    LEGGING_2("铁护腿", 2,6,2,0.00),
    LEGGING_3("金护腿", 3,9,3,0.01),
    LEGGING_4("钻石护腿", 4,15,4,0.02),
    LEGGING_GHOST("幽灵护腿", 7, 15, 4, 0.04),
    LEGGING_SPACEKING("空间之主护腿", 15, 20, 8, 0.10);

    private final String displayName;
    private final int attack;
    private final int defense;
    private final int speed;
    private final double critRate;

    LeggingType(String displayName, int attack,int defense, int speed, double critRate) {
        this.displayName = displayName;
        this.attack = attack;
        this.defense = defense;
        this.speed = speed;
        this.critRate = critRate;
    }

    @Override
    public String getTypeCategory() {
        return "LEGGING";
    }

    @Override
    public String getName() {
        return displayName;
    }

    @Override
    public ArrayList<Integer> getBaseValue() {
        return new ArrayList<Integer>(){{
            add(attack);
            add(defense);
            add(speed);
        }};
    }
    public int getAttack() {
        return attack;
    }
    public int getDefense() {
        return defense;
    }
    public int getSpeed() {
        return speed;
    }
    public double getCritRate() {
        return critRate;
    }
}
